package com.springstudy.advice;


import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author Tamako
 * @since 2025/1/10 14:48
 */
public class MyAdvice3 implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("MyAdvice3 before invoke");
        Object result = invocation.getMethod().invoke(invocation.getThis(), invocation.getArguments());
        System.out.println("MyAdvice3 after invoke");
        return result;
    }
}
